<!DOCTYPE html>
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
  <meta name="description" content="刘清政">
  <meta name="keyword" content="hexo-theme">
  
    <link rel="shortcut icon" href="/css/images/logo.png">
  
  <title>
    
      Justin-刘清政的博客
    
  </title>
  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css" rel="stylesheet">
  <link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/tomorrow.min.css" rel="stylesheet">
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/css/plugins/gitment.css">

  
  <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js"></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
  
    
<script src="/js/qrious.js"></script>

  
  
    
<script src="/js/gitment.js"></script>

  
  

  
<meta name="generator" content="Hexo 4.2.0"></head>
<div class="wechat-share">
  <img src="/css/images/logo.png" />
</div>

  <body>
    <header class="header fixed-header">
  <div class="header-container">
    <a class="home-link" href="/">
      <div class="logo"></div>
      <span>Justin-刘清政的博客</span>
    </a>
    <ul class="right-list">
      
        <li class="list-item">
          
            <a href="/" class="item-link active">主页</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/tags/" class="item-link">标签</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/archives/" class="item-link">归档</a>
          
        </li>
      
        <li class="list-item">
          
            <a href="/about/" class="item-link">关于我</a>
          
        </li>
      
    </ul>
    <div class="menu">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </div>
    <div class="menu-mask">
      <ul class="menu-list">
        
          <li class="menu-item">
            
              <a href="/" class="menu-link mobile-active">主页</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/tags/" class="menu-link">标签</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/archives/" class="menu-link">归档</a>
            
          </li>
        
          <li class="menu-item">
            
              <a href="/about/" class="menu-link">关于我</a>
            
          </li>
        
      </ul>
    </div>
  </div>
</header>

    <main class="app-body">
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/4-%E8%AF%BE%E7%A8%8B%E4%B8%BB%E9%A1%B5%E4%B9%8B%E8%AF%BE%E7%A8%8B%E9%A1%B5%E9%9D%A2/">python/路飞项目/6-课程模块/4-课程主页之课程页面</a>
      </h2>
      <p class="article-date">2020年1月13日</p>
      
      <div class="article-summary">
        
          课程组件1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757 ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/4-%E8%AF%BE%E7%A8%8B%E4%B8%BB%E9%A1%B5%E4%B9%8B%E8%AF%BE%E7%A8%8B%E9%A1%B5%E9%9D%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/1-%E8%AF%BE%E7%A8%8B%E9%A1%B5%E9%A1%B5%E9%9D%A2/">python/路飞项目/6-课程模块/1-课程页页面</a>
      </h2>
      <p class="article-date">2020年1月10日</p>
      
      <div class="article-summary">
        
          课程组件1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757 ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/1-%E8%AF%BE%E7%A8%8B%E9%A1%B5%E9%A1%B5%E9%9D%A2/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/2-%E8%AF%BE%E7%A8%8B%E4%B8%BB%E9%A1%B5%E4%B9%8B%E8%AF%BE%E7%A8%8B%E8%A1%A8%E5%88%86%E6%9E%90/">python/路飞项目/6-课程模块/2-课程主页之课程表分析</a>
      </h2>
      <p class="article-date">2020年1月10日</p>
      
      <div class="article-summary">
        
          课程表分析1234567891011121314151617181920212223242526272829303132333435class Course(models.Model):    name = models.CharField(max_length=64)    title = ...
        
      </div>
      <a class="more" href="/python/%E8%B7%AF%E9%A3%9E%E9%A1%B9%E7%9B%AE/6-%E8%AF%BE%E7%A8%8B%E6%A8%A1%E5%9D%97/2-%E8%AF%BE%E7%A8%8B%E4%B8%BB%E9%A1%B5%E4%B9%8B%E8%AF%BE%E7%A8%8B%E8%A1%A8%E5%88%86%E6%9E%90/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/17-%E6%89%A9%E5%B1%95%E9%98%85%E8%AF%BB-%E5%88%A0%E9%99%A4%E6%98%A0%E5%B0%84%E7%B1%BB%E5%9E%8B/">db/Elasticsearch系列/17-扩展阅读-删除映射类型</a>
      </h2>
      <p class="article-date">2019年12月30日</p>
      
      <div class="article-summary">
        
          一 前言官方解释：https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html
在elasticsearch6.0.0或更高的版本中创建索引仅能包含单个映射类型。在具有多种映射类型的5.x版 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/17-%E6%89%A9%E5%B1%95%E9%98%85%E8%AF%BB-%E5%88%A0%E9%99%A4%E6%98%A0%E5%B0%84%E7%B1%BB%E5%9E%8B/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/19-Elasticsearch%E4%B9%8B%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6/">db/Elasticsearch系列/19-Elasticsearch之配置文件</a>
      </h2>
      <p class="article-date">2019年12月30日</p>
      
      <div class="article-summary">
        
          一 前言在elasticsearch\config目录下，有三个核心的配置文件：

elasticsearch.yml，es相关的配置。
jvm.options，Java jvm相关参数的配置。
log4j2.properties，日志相关的配置，因为es采用了log4j的日志框架。

这里 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/19-Elasticsearch%E4%B9%8B%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/16-%E6%89%A9%E5%B1%95%E9%98%85%E8%AF%BB-%E5%80%92%E6%8E%92%E7%B4%A2%E5%BC%95/">db/Elasticsearch系列/16-扩展阅读-倒排索引</a>
      </h2>
      <p class="article-date">2019年12月30日</p>
      
      <div class="article-summary">
        
          随着央视诗词大会的热播，小史开始对诗词感兴趣，最喜欢的就是飞花令的环节。

但是由于小史很久没有背过诗词了，飞一个字很难说出一句，很多之前很熟悉的诗句也想不起来。










倒排索引






吕老师：但是我让你说出带“前”字的诗句，由于没有索引，你只能遍历脑海中所有诗词，当你的 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/16-%E6%89%A9%E5%B1%95%E9%98%85%E8%AF%BB-%E5%80%92%E6%8E%92%E7%B4%A2%E5%BC%95/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/20-Elasticsearch%E4%B9%8B%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF/">db/Elasticsearch系列/20-Elasticsearch之常见错误</a>
      </h2>
      <p class="article-date">2019年12月30日</p>
      
      <div class="article-summary">
        
          一 read_only_allow_delete” : “true”当我们在向某个索引添加一条数据的时候，可能（极少情况）会碰到下面的报错：
12345678910111213&#123;  &quot;error&quot;: &#123;    &quot;root_cause&quot ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/20-Elasticsearch%E4%B9%8B%E5%B8%B8%E8%A7%81%E9%94%99%E8%AF%AF/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Elasticsearch%E7%B3%BB%E5%88%97/18-Elasticsearch%E4%B9%8B%E6%89%93%E5%88%86%E6%9C%BA%E5%88%B6/">db/Elasticsearch系列/18-Elasticsearch之打分机制</a>
      </h2>
      <p class="article-date">2019年12月30日</p>
      
      <div class="article-summary">
        
          一 例子现在，讲述一个真实的故事！ 故事一定是伴随着赵忠祥老师的声音开始的，雨季就要来临了，又到了动物们发情的季节了… 还记得，之前发生的作家六六吐槽xx的事情吗？对了，有图有真相！上图上图：

身为吃瓜群众，要从专业的角度来分析，就事论事哈： 就搜索结果本身而言，xx返回了正确的结果（是的 ...
        
      </div>
      <a class="more" href="/db/Elasticsearch%E7%B3%BB%E5%88%97/18-Elasticsearch%E4%B9%8B%E6%89%93%E5%88%86%E6%9C%BA%E5%88%B6/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Redis%E7%B3%BB%E5%88%97/07-Redis%E7%B3%BB%E5%88%97%E4%B9%8B-Redis-Sentinel/">db/Redis系列/07-Redis系列之-Redis-Sentinel</a>
      </h2>
      <p class="article-date">2019年12月29日</p>
      
      <div class="article-summary">
        
          一 主从复制高可用123#主从复制存在的问题：#1 主从复制，主节点发生故障，需要做故障转移，可以手动转移：让其中一个slave变成master#2 主从复制，只能主写数据，所以写能力和存储能力有限

二 架构说明可以做故障判断，故障转移，通知客户端（其实是一个进程），客户端直接连接sent ...
        
      </div>
      <a class="more" href="/db/Redis%E7%B3%BB%E5%88%97/07-Redis%E7%B3%BB%E5%88%97%E4%B9%8B-Redis-Sentinel/">详情...</a>
    </article>
  
    <article class="article-card">
      <h2 class="article-head">
        <a href="/db/Redis%E7%B3%BB%E5%88%97/09-Redis%E7%B3%BB%E5%88%97%E4%B9%8B-%E7%BC%93%E5%AD%98%E7%9A%84%E4%BD%BF%E7%94%A8%E5%92%8C%E4%BC%98%E5%8C%96/">db/Redis系列/09-Redis系列之-缓存的使用和优化</a>
      </h2>
      <p class="article-date">2019年12月29日</p>
      
      <div class="article-summary">
        
          一 缓存的收益与成本1.1 受益
1 加速读写
2 降低后端负载：后端服务器通过前端缓存降低负载，业务端使用redis降低后端mysql负载

1.2 成本
1 数据不一致：缓存层和数据层有时间窗口不一致，和更新策略有关
2 代码维护成本：多了一层缓存逻辑
3 运维成本：比如使用了Redis ...
        
      </div>
      <a class="more" href="/db/Redis%E7%B3%BB%E5%88%97/09-Redis%E7%B3%BB%E5%88%97%E4%B9%8B-%E7%BC%93%E5%AD%98%E7%9A%84%E4%BD%BF%E7%94%A8%E5%92%8C%E4%BC%98%E5%8C%96/">详情...</a>
    </article>
  

  
    <div class="guide-pager">
  
    <a href="/page/31/"><span class="page-arrow">← </span>Prev</a>
  
  
    <a href="/page/33/">Next<span class="page-arrow"> →</span></a>
  
</div>
  
</main>


    <div class="scroll-top">
  <span class="arrow-icon"></span>
</div>
    <footer class="app-footer">
<!-- 不蒜子统计 -->
<span id="busuanzi_container_site_pv">
     本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<span class="post-meta-divider">|</span>
<span id="busuanzi_container_site_uv" style='display:none'>
     本站访客数<span id="busuanzi_value_site_uv"></span>人
</span>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>



  <p class="copyright">
    &copy; 2021 | Proudly powered by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank">小猿取经</a>
    <br>
    Theme by <a href="https://www.cnblogs.com/xiaoyuanqujing" target="_blank" rel="noopener">小猿取经</a>
  </p>
</footer>

<script>
  function async(u, c) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<script>
  async("//cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js", function(){
    FastClick.attach(document.body);
  })
</script>

<script>
  var hasLine = 'true';
  async("//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js", function(){
    $('figure pre').each(function(i, block) {
      var figure = $(this).parents('figure');
      if (hasLine === 'false') {
        figure.find('.gutter').hide();
      }
      var lang = figure.attr('class').split(' ')[1] || 'code';
      var codeHtml = $(this).html();
      var codeTag = document.createElement('code');
      codeTag.className = lang;
      codeTag.innerHTML = codeHtml;
      $(this).attr('class', '').empty().html(codeTag);
      figure.attr('data-lang', lang.toUpperCase());
      hljs.highlightBlock(block);
    });
  })
</script>





<!-- Baidu Tongji -->

<script>
    var _baId = 'c5fd96eee1193585be191f318c3fa725';
    // Originial
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?" + _baId;
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
</script>


<script src="/js/script.js"></script>


<script src="/js/search.js"></script>


<script src="/js/load.js"></script>



  <span class="local-search local-search-google local-search-plugin" style="right: 50px;top: 70px;;position:absolute;z-index:2;">
      <input type="search" placeholder="站内搜索" id="local-search-input" class="local-search-input-cls" style="">
      <div id="local-search-result" class="local-search-result-cls"></div>
  </span>


  </body>
</html>